$OpenBSD: patch-platform_x11_jstest_main_c,v 1.2 2016/12/12 10:54:39 sthen Exp $

add pledge(2) to mujstest
  - rpath : OPEN command
  - wpath cpath : SCREENSHOT command

--- platform/x11/jstest_main.c.orig	Mon Nov 28 13:34:04 2016
+++ platform/x11/jstest_main.c	Mon Dec 12 09:39:02 2016
@@ -309,6 +309,12 @@ main(int argc, char *argv[])
 	if (fz_optind == argc)
 		usage();
 
+	if (pledge("stdio rpath wpath cpath", NULL) == -1)
+	{
+		fprintf(stderr, "pledge: %s\n", strerror(errno));
+		exit(1);
+	}
+
 	ctx = fz_new_context(NULL, NULL, FZ_STORE_DEFAULT);
 	if (!ctx)
 	{
